<!DOCTYPE html>
<html>

  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>储值营销设置</title>
    <!-- Bootstrap -->
    <link href="../assets/css/bootstrap.min.css" rel="stylesheet">
		<link href="fonts/iconfont.css" rel="stylesheet">
		<link href="../assets/css/style.css" rel="stylesheet" />
		<link href="../assets/css/motai.css" rel="stylesheet" />
		<link href="../assets/css/form.css" rel="stylesheet" />
		<link href="../assets/css/table.css" rel="stylesheet" />
		<link href="../assets/css/content.css " rel="stylesheet" />
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
          <script src="../assets/js/html5shiv.min.js"></script>
          <script src="../assets/js/respond.min.js"></script>
          <![endif]-->
          <style type="text/css">
            .yxgzgycon{
              font-size:12px ;
              color: #333333;
              margin-top: 10px;
            }
            .gaiyaolist-con{
              color: #999999;
              padding-top: 10px;
            }
            .gaiyaolist-con span{
              padding-right: 10px;
            }
            .withe-input{
              background: #FFFFFF;
              border: 1px solid #D7D7D7;
            }
          </style>
  </head>

  <body>
    <!--内容区域-->
    <div class="content">
      <!-- 头部的餐厅选择 -->
      <div class="content-header col-md-12">
        <div class="con-header">
          <div class="col-md-7 col-sm-7 col-xs-7">
            <span class="content-title-pre"></span><span class="content-title-word">储值营销设置</span>
          </div>
          <div class="col-md-5 col-sm-5 col-xs-5">
            <button type="button" class="btn btn-info btn-header" data-toggle="modal" data-target="#add_store">添加+</button>
          </div>
        </div>
      </div>
      <!-- botstrop 的内容 -->
      <div class="content-form row">
        <div class="col-md-12">
          <form class="form-horizontal" role="form">
            <div class="form-group mt5">
              <label for="firstname" class="col-lg-1 col-md-2 col-sm-2 col-xs-4 control-label slowlable">服&emsp;&emsp;务</label>
              <div class="col-md-4 col-sm-6 col-xs-8">
                <span class="beijing">
                  <span class="yuanquan" onclick="whetherOpen(this);"></span>
                </span>
                <span class="open">已开启</span>
                <div class="clearfix"></div>
              </div>
            </div>
            <div class="form-group mt5">
              <div class="fromsetra">
                <div>
                  <span>
                    <span class="checkboxes yxsetrano yxsetrack yxgzgycon-sj"></span>
                    <span class="yxsetra">使用商家营销规则</span>
                  </span>
                  <span>
                    <span class="checkboxes yxsetrano yxgzgycon-md"></span>
                    <span class="yxsetra">使用门店营销规则</span>
                  </span>
                </div>
                <div class="yxgzgycon">
                  <div class="yxgzgycon-list-sj">
                     <div>商家营销规则概要：</div>
                      <div class="gaiyaolist-con"><span>储值300元，赠送50元</span><span>储值300元，赠送50元</span><span>储值300元，赠送50元</span><span>储值300元，赠送50元</span><span>储值300元，赠送50元</span></div>
                  </div>
                  <div class="yxgzgycon-list-md hidden">
                     <div>门店营销规则概要：</div>
                      <div class="gaiyaolist-con"><span>储值300元，赠送50元</span><span>储值300元，赠送50元</span><span>储值300元，赠送50元</span><span>储值300元，赠送50元</span><span>储值300元，赠送50元</span></div>
                  </div>
                </div>
              </div>
            </div>
            <div class="form-group mt5">
              <label for="firstname" class="col-lg-1 col-md-2 col-sm-2 col-xs-4 control-label slowlable">标&emsp;&emsp;题</label>
              <div class="col-md-4 col-sm-6 col-xs-8">
                <input type="text" class="form-control slowinput" placeholder="请输入简称">
              </div>
            </div>
            <div class="form-group mt5">
              <label for="firstname" class="col-lg-1 col-md-2 col-sm-2 col-xs-4 control-label slowlable file_img_lable">封&emsp;&emsp;面</label>
              <div class="col-md-4 col-sm-6 col-xs-8">
                <span class="yingxiao-wutu"><img src="../assets/images/wutu.png"></span>
                <button type="button" class="file_img_button border-radius5" data-toggle="modal" data-target="#sucaikubtn">
                  素材库
                </button>
              </div>
            </div>
            <div class="form-group mt5">
              <label for="firstname" class="col-lg-1 col-md-2 col-sm-2 col-xs-4 control-label slowlable">服&emsp;&emsp;务</label>
              <div class="col-md-4 col-sm-6 col-xs-8">
                <span class="beijing">
                  <span class="yuanquan"></span>
                </span>
                <span class="open">已开启</span>
                <div class="clearfix"></div>
                
              </div>
            </div>
            <div class="form-group mt5">
              <label for="firstname" class="col-lg-1 col-md-2 col-sm-2 col-xs-4 control-label slowlable">正文内容</label>
              <div class="col-md-4 col-sm-6 col-xs-8">
                <span class="beijing">
                  <span class="yuanquan"></span>
                </span>
                <span class="open">已开启</span>
                <div class="clearfix"></div>
                
              </div>
            </div>
            <div class="yingxiao-smallwrod">
              停用后，点击正文将自动跳转至领券页面/积分历史/会员中心
            </div>
            <div class="form-group mt5">
              <label for="firstname" class="col-lg-1 col-md-2 col-sm-2 col-xs-4 control-label slowlable">原文链接</label>
              <div class="col-md-4 col-sm-6 col-xs-8">
                <input type="text" class="form-control slowinput" placeholder="请输入简称">
              </div>
            </div>
            <div class="yingxiao-smallwrod">
              建议输入微信推送原文链接
            </div>
            <div class="form-group mt5">
              <label for="firstname" class="col-lg-1 col-md-2 col-sm-2 col-xs-4 control-label slowlable">赠送金额</label>
              <div class="col-md-4 col-sm-6 col-xs-8">
                <span class="beijing">
                  <span class="yuanquan"></span>
                </span>
                <span class="open">已开启</span>
                <div class="clearfix"></div>
              </div>
            </div>
            <div class="form-group mt5">
                <div class="col-lg-7 col-md-9 col-sm-12 col-xs-12">
                  <div class="table-responsive setup">
                    <table class="table">
                      <thead class="tablethead">
                        <tr>
                          <th class="firstth" valign="middle">序号</th>
                          <th class="secondta">储值规则</th>
                          <th>赠送金额</th>
                          <th>操作</th>
                        </tr>
                      </thead>
                      <tbody class="mytable">
                        <tr>
                          <td class="firsttd" valign="middle">1</td>
                          <td class="secondta">充值300元</td>
                          <td>
                            <span class="setczinput"><input type="text" class="form-control inline-input withe-input"></span>
                            <span class="setczje hidden">300</span>
                          </td>
                          <td>
                            <button type="button" class="btn btn-default btn-table setsavebtn">保存</button>
                            <span class="button-pre"></span>
                            <button type="button" class="btn btn-default btn-table red">删除</button>
                          </td>
                        </tr>
                        <tr>
                          <td class="firsttd" valign="middle">1</td>
                          <td class="secondta">充值300元</td>
                          <td>
                            <span class="setczinput"><input type="text" class="form-control inline-input withe-input"></span>
                            <span class="setczje hidden">300</span>
                          </td>
                          <td>
                            <button type="button" class="btn btn-default btn-table setsavebtn">保存</button>
                            <span class="button-pre"></span>
                            <button type="button" class="btn btn-default btn-table red">删除</button>
                          </td>
                        </tr>
                        <tr>
                          <td class="firsttd" valign="middle">1</td>
                          <td class="secondta">充值300元</td>
                          <td>
                            <span class="setczinput"><input type="text" class="form-control inline-input withe-input"></span>
                            <span class="setczje hidden">300</span>
                          </td>
                          <td>
                            <button type="button" class="btn btn-default btn-table setsavebtn">保存</button>
                            <span class="button-pre"></span>
                            <button type="button" class="btn btn-default btn-table red">删除</button>
                          </td>
                        </tr>
                      </tbody>
                    </table>
                  </div>
                </div>
            </div>
            <div class="form-group mt5">
              <label for="firstname" class="col-lg-1 col-md-2 col-sm-2 col-xs-4 control-label slowlable">赠送积分</label>
              <div class="col-md-2 col-sm-6 col-xs-8">
                <input type="text" class="form-control slowinput" placeholder="" value="10">
              </div>
            </div>
            <div class="form-group mt5">
                <div class="col-lg-7 col-md-9 col-sm-12 col-xs-12">
                  <div class="table-responsive setup">
                    <table class="table">
                      <thead class="tablethead">
                        <tr>
                          <th class="firstth" valign="middle">序号</th>
                          <th class="secondta">储值规则</th>
                          <th>赠送积分</th>
                          <th>操作</th>
                        </tr>
                      </thead>
                      <tbody class="mytable">
                        <tr>
                          <td class="firsttd" valign="middle">1</td>
                          <td class="secondta">充值300元</td>
                          <td>
                            <span class="setczinput"><input type="text" class="form-control inline-input withe-input"></span>
                            <span class="setczje hidden">300</span>
                          </td>
                          <td>
                            <button type="button" class="btn btn-default btn-table setsavebtn">保存</button>
                            <span class="button-pre"></span>
                            <button type="button" class="btn btn-default btn-table red">删除</button>
                          </td>
                        </tr>
                        <tr>
                          <td class="firsttd" valign="middle">1</td>
                          <td class="secondta">充值300元</td>
                          <td>
                            <span class="setczinput"><input type="text" class="form-control inline-input withe-input"></span>
                            <span class="setczje hidden">300</span>
                          </td>
                          <td>
                            <button type="button" class="btn btn-default btn-table setsavebtn">保存</button>
                            <span class="button-pre"></span>
                            <button type="button" class="btn btn-default btn-table red">删除</button>
                          </td>
                        </tr>
                        <tr>
                          <td class="firsttd" valign="middle">1</td>
                          <td class="secondta">充值300元</td>
                          <td>
                            <span class="setczinput"><input type="text" class="form-control inline-input withe-input"></span>
                            <span class="setczje hidden">300</span>
                          </td>
                          <td>
                            <button type="button" class="btn btn-default btn-table setsavebtn">保存</button>
                            <span class="button-pre"></span>
                            <button type="button" class="btn btn-default btn-table red">删除</button>
                          </td>
                        </tr>
                      </tbody>
                    </table>
                  </div>
                </div>
            </div>
            <div class="form-group mt5">
              <label for="firstname" class="col-lg-1 col-md-2 col-sm-2 col-xs-4 control-label slowlable">赠送卡券</label>
              <div class="col-md-4 col-sm-4 col-xs-8">
                <span class="beijing">
                  <span class="yuanquan"></span>
                </span>
                <span class="open">已开启</span>
                <div class="clearfix"></div>
                
              </div>
            </div>
            <div class="form-group mt5">
              <label for="firstname" class="col-lg-1 col-md-2 col-sm-2 col-xs-4 control-label slowlable">券包名称</label>
              <div class="col-md-2 col-sm-4 col-xs-4">
                <input type="text" class="form-control slowinput" placeholder="" value="10">
              </div>
             <button class="kaquanbtn border-radius5" type="button"  data-toggle="modal" data-target="#kqgzsz">
		  							添加
		  						</button>
            </div>
            <div class="form-group mt5">
                <div class="col-lg-7 col-md-9 col-sm-12 col-xs-12">
                  <div class="table-responsive setup">
                    <table class="table">
                      <thead class="tablethead">
                        <tr>
                          <th class="firstth" valign="middle">序号</th>
                          <th class="secondta">储值规则</th>
                          <th>券包名称</th>
                          <th>卡券名称</th>
                          <th>操作</th>
                        </tr>
                      </thead>
                      <tbody class="mytable">
                        <tr>
                          <td class="firsttd" valign="middle">1</td>
                          <td class="secondta">充值300元</td>
                          <td>50</td>
                          <td>5元代金券*1 50元代金券*2</td>
                          <td>
                            <button type="button" class="btn btn-default btn-table">编辑</button>
                            <span class="button-pre"></span>
                            <button type="button" class="btn btn-default btn-table red">删除</button>
                          </td>
                        </tr>
                        <tr>
                          <td class="firsttd" valign="middle">1</td>
                          <td class="secondta">充值300元</td>
                          <td>50</td>
                          <td>5元代金券*1 50元代金券*2</td>
                          <td>
                            <button type="button" class="btn btn-default btn-table">编辑</button>
                            <span class="button-pre"></span>
                            <button type="button" class="btn btn-default btn-table red">删除</button>
                          </td>
                        </tr>
                        <tr>
                          <td class="firsttd" valign="middle">1</td>
                          <td class="secondta">充值300元</td>
                          <td>50</td>
                          <td>5元代金券*1 50元代金券*2</td>
                          <td>
                            <button type="button" class="btn btn-default btn-table">编辑</button>
                            <span class="button-pre"></span>
                            <button type="button" class="btn btn-default btn-table red">删除</button>
                          </td>
                        </tr>
                      </tbody>
                    </table>
                  </div>
                </div>
            </div>
            <div class="yingxiao-save text-center">
              <button class="yingxiao-savebtn">
                保存
              </button>
            </div>
          </form>
        </div>
      </div>
    </div>
    <!-- 模态框（Modal） -->
		<div class="modal fade" id="kqgzsz" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
		  		<div class="modal-dialog">
		  			<div class="modal-content">
		  				<div class="modal-header ckgzsz-modal-header">
		  					<div class="zuo-close ckgzsz-zuo-close" data-dismiss="modal">
		  						<i class="iconfont icon-o1"></i>
		  					</div>
		  					<h5 class="modal-title ckgzsz-modal-title" id="myModalLabel">卡券规则设置</h5>
		  				</div>
		  				<div class="modal-body">
		  					<div class="row height560-overflow">
		  						<form class="form-horizontal" role="form">
		  							<div class="form-group mt5">
		  								<div class="col-xs-12">
		  									<div class="table-responsive setup">
		  										<table class="table">
		  											<thead class="tablethead">
		  												<tr>
		  													<th class="firstth" valign="middle">序号</th>
		  													<th class="secondta">类型</th>
		  													<th>名称</th>
		  													<th>有效期</th>
		  													<th>卡券数量</th>
		  												</tr>
		  											</thead>
		  											<tbody class="mytable">
		  												<tr>
		  													<td class="firsttd" valign="middle">1</td>
		  													<td class="secondta">充值300元</td>
		  													<td>5元代金券*1</td>
		  													<td>2016-12-01</td>
		  													<td>
		  														<i class="iconfont iconfont_color1 icon-jian"></i>
		  														<span class="number_shu">0</span>
		  														<i class="iconfont iconfont_color1 icon-jia"></i>
		  													</td>
		  												</tr>
		  												<tr>
		  													<td class="firsttd" valign="middle">1</td>
		  													<td class="secondta">充值300元</td>
		  													<td>5元代金券*1</td>
		  													<td>2016-12-01</td>
		  													<td>
		  														<i class="iconfont iconfont_color1 icon-jian"></i>
		  														<span class="number_shu">0</span>
		  														<i class="iconfont iconfont_color1 icon-jia"></i>
		  													</td>
		  												</tr>
		  												<tr>
		  													<td class="firsttd" valign="middle">1</td>
		  													<td class="secondta">充值300元</td>
		  													<td>5元代金券*1</td>
		  													<td>2016-12-01</td>
		  													<td>
		  														<i class="iconfont iconfont_color1 icon-jian"></i>
		  														<span class="number_shu">0</span>
		  														<i class="iconfont iconfont_color1 icon-jia"></i>
		  													</td>
		  												</tr>
		  												<tr>
		  													<td class="firsttd" valign="middle">1</td>
		  													<td class="secondta">充值300元</td>
		  													<td>5元代金券*1</td>
		  													<td>2016-12-01</td>
		  													<td>
		  														<i class="iconfont iconfont_color1 icon-jian"></i>
		  														<span class="number_shu">0</span>
		  														<i class="iconfont iconfont_color1 icon-jia"></i>
		  													</td>
		  												</tr>
		  												<tr>
		  													<td class="firsttd" valign="middle">1</td>
		  													<td class="secondta">充值300元</td>
		  													<td>5元代金券*1</td>
		  													<td>2016-12-01</td>
		  													<td>
		  														<i class="iconfont iconfont_color1 icon-jian"></i>
		  														<span class="number_shu">0</span>
		  														<i class="iconfont iconfont_color1 icon-jia"></i>
		  													</td>
		  												</tr>
		  												
		  											</tbody>
		  										</table>
		  									</div>
		  								</div>
		  							</div>
		  						</form>
		  					</div>
		  				</div>
		  				<div class="modal-footer shangjiaguanli_foot">

		  					<button type="button" class="btn save">保存</button>
		  					<button type="button" class="btn  close_motai" data-dismiss="modal">关闭</button>
		  				</div>
		  			</div>
		  			<!-- /.modal-content -->
		  		</div>
		  		<!-- /.modal -->
		  	</div>
		  	<!--素材库模态框-->
    <div class="modal fade" id="sucaikubtn" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
      <div class="modal-dialog">
        <div class="modal-content">
          <div class="modal-header sucaiku-header">
            <div class="zuo-close" data-dismiss="modal">
              <i class="iconfont icon-o1"></i>
            </div>
            <div class="sucaiku-table">
              <div class="sucaiku colo_bg">素材</div>
              <div class="shangjiasucai">商家素材</div>
              <div class="clearfix"></div>
            </div>
          </div>
          <div class="modal-body">
            <div class="row">
              <form class="form-horizontal" role="form">
                <div class="sucaiku-body">
                  <div class="col-md-3 col-sm-4 col-xs-6 tupian-list">
                    <div class="tupian-item">
                      <img src="../assets/images/20150805133816_X8zCQ.thumb.700_0.jpeg" class="sucaiku-img">
                    </div>
                    <div class="sucaizhezhao hidden">
                        <div class="zhezhaoimg">
                          <i class="icon iconfont icon-yuanxingxuanzhongfill sucaichose"></i>
                        </div>
                      </div>
                  </div>
                   <div class="col-md-3 col-sm-4 col-xs-6 tupian-list">
                    <div class="tupian-item">
                      <img src="../assets/images/20150805133816_X8zCQ.thumb.700_0.jpeg" class="sucaiku-img">
                    </div>
                    <div class="sucaizhezhao hidden">
                      <div class="zhezhaoimg">
                        <i class="icon iconfont icon-yuanxingxuanzhongfill sucaichose"></i>
                      </div>
                    </div>
                  </div>
                   <div class="col-md-3 col-sm-4 col-xs-6 tupian-list">
                    <div class="tupian-item">
                      <img src="../assets/images/20150805133816_X8zCQ.thumb.700_0.jpeg" class="sucaiku-img">
                    </div>
                    <div class="sucaizhezhao hidden">
                        <div class="zhezhaoimg">
                          <i class="icon iconfont icon-yuanxingxuanzhongfill sucaichose"></i>
                        </div>
                      </div>
                  </div>
                  <div class="col-md-3 col-sm-4 col-xs-6 tupian-list">
                    <div class="tupian-item">
                      <img src="../assets/images/20150805133816_X8zCQ.thumb.700_0.jpeg" class="sucaiku-img">
                    </div>
                    <div class="sucaizhezhao hidden">
                      <div class="zhezhaoimg">
                        <i class="icon iconfont icon-yuanxingxuanzhongfill sucaichose"></i>
                      </div>
                    </div>
                  </div>
                  <div class="col-md-3 col-sm-4 col-xs-6 tupian-list">
                    <div class="tupian-item">
                      <img src="../assets/images/20150805133816_X8zCQ.thumb.700_0.jpeg" class="sucaiku-img">
                    </div>
                    <div class="sucaizhezhao hidden">
                        <div class="zhezhaoimg">
                          <i class="icon iconfont icon-yuanxingxuanzhongfill sucaichose"></i>
                        </div>
                      </div>
                  </div>
                  <div class="col-md-3 col-sm-4 col-xs-6 tupian-list">
                    <div class="tupian-item">
                      <img src="../assets/images/20150805133816_X8zCQ.thumb.700_0.jpeg" class="sucaiku-img">
                    </div>
                    <div class="sucaizhezhao hidden">
                      <div class="zhezhaoimg">
                        <i class="icon iconfont icon-yuanxingxuanzhongfill sucaichose"></i>
                      </div>
                    </div>
                  </div>
                  <div class="col-md-3 col-sm-4 col-xs-6 tupian-list">
                    <div class="tupian-item">
                      <img src="../assets/images/20150805133816_X8zCQ.thumb.700_0.jpeg" class="sucaiku-img">
                    </div>
                    <div class="sucaizhezhao hidden">
                      <div class="zhezhaoimg">
                        <i class="icon iconfont icon-yuanxingxuanzhongfill sucaichose"></i>
                      </div>
                    </div>
                  </div>
                </div>

                <div class="shangjiasucai-body">
                  <div class="addimgbtn">
                    <img src="../assets/images/ff.png" class="addimgbtn-pic">
                  </div>
                  <div class="sucaizhezhao hidden">
                        <div class="zhezhaoimg">
                          <i class="icon iconfont icon-yuanxingxuanzhongfill sucaichose"></i>
                        </div>
                      </div>
                </div>
              </form>
            </div>
          </div>
          <div class="modal-footer white_bg bd_padding">

            <button type="button" class="btn save">保存</button>
            <button type="button" class="btn  close_motai" data-dismiss="modal">关闭</button>
          </div>
        </div>
        <!-- /.modal-content -->
      </div>
      <!-- /.modal -->
    </div>
    <script src="../assets/js/jquery.min.js"></script>
    <script src="../assets/js/bootstrap.min.js"></script>
    <script src="../assets/js/main.js"></script>
    <script type="text/javascript">
      $('.setsavebtn').on('click',function(){
        var keyword = $(this).parent().siblings().children(".setczinput").children('.withe-input').val();
        if($(this).html() == '保存'){
          if(keyword == ''){
            alert('不能为空！')
          }
          else{
            $(this).parent().siblings().children(".setczinput").addClass('hidden');
            $(this).parent().siblings().children(".setczje").removeClass('hidden');
            $(this).html('重置');
            $(this).parent().siblings().children(".setczje").html(keyword);
          }
        }
        else{
          $(this).parent().siblings().children(".setczinput").removeClass('hidden');
          $(this).parent().siblings().children(".setczje").addClass('hidden')
          $(this).html('保存');
        }
        
      })
    </script>
  </body>

</html>